<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
    <link href="main.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function setValue(){
            var username = localStorage.getItem("curucode");
            document.getElementById("uname").value = username;//localStorage.getItem(username);
            document.getElementById("upass").value = localStorage.getItem(username+"_p");
        }
    </script>
</head>
<body>
     <div id="top">
    <h1>
      智能选题系统
    </h1>
  </div>
    <form action="index.aspx" method="POST">
        <fieldset>
            <legend>用户登录信息</legend>
            <label for="uname">用户名：</label>
            <input id="uname" type="text" />
            <br />
            <label for="upass">密&emsp;码：</label>
            <input id="upass" type="password" />
            <br />
            <input value="确定" type="submit" />
            <input value="重置" type="reset" />
            <br />
            <a href="">忘记密码？</a>
        </fieldset>
    </form>

    <script type="text/javascript">
        setValue();
    </script>

</body>
</html>